Skip to content

fix(app): enable terminal on draft sessions#33120

Draft
anduimagui wants to merge 1 commit into
anomalyco:devfrom
anduimagui:draft-terminal
Draft

fix(app): enable terminal on draft sessions#33120
anduimagui wants to merge 1 commit into
anomalyco:devfrom
anduimagui:draft-terminal

Conversation

@anduimagui

Copy link
Copy Markdown

Issue for this PR

Closes #33119

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Enables the existing embedded terminal panel on the /new-session draft route.

The draft route now mounts TerminalProvider, derives the session layout/terminal workspace key from the draft SDK directory when there is no :dir route param, renders the existing TerminalPanel, and registers terminal.toggle / terminal.new while the draft page is mounted.

This keeps normal session routing behavior unchanged while allowing the desktop View -> Toggle Terminal path to work before the draft is promoted into a real session.

How did you verify your code works?

  • bun typecheck from packages/app
  • bun test from packages/app (407 pass)
  • push hook ran bun turbo typecheck successfully

Screenshots / recordings

Not captured yet; opening as a draft so a visual check can be added before marking ready.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Desktop new-session page cannot toggle terminal

1 participant